package com.xujl.mvcbind.repository;

import com.xujl.fastlib.utils.SpHelper;
import com.xujl.mvcbind.bean.UserInfoBean;
import com.xujl.mvcbind.consts.SpKey;

/**
 * @author x
 * @Description
 */
public class LocalDataImpl implements ILocalData {
    @Override
    public UserInfoBean getUserInfo () {
        return SpHelper.getInstance().getObject(SpKey.USER_INFO);
    }

    @Override
    public void saveUserInfo (UserInfoBean userInfoBean) {
        SpHelper.getInstance().edit().putObject(SpKey.USER_INFO, userInfoBean).commit();
    }
}
